package RayTracing;

public class Material {

	//########################## Global Variables ###################################
	public double[] dRGB = new double[3]; //Diffuse Color
	public double[] sRGB = new double[3]; //Specular Color
	public double phong; // phong specularity coefficient
	
	
	//########################## Constructors ###################################
	public Material(String[] args){
		if (RayTracer.SHOW_LOG){ System.out.println("In Material Constructor");}
		
		dRGB[0] = Double.parseDouble(args[0]);
		dRGB[1] = Double.parseDouble(args[1]);
		dRGB[2] = Double.parseDouble(args[2]);
		
		sRGB[0] = Double.parseDouble(args[3]);
		sRGB[1] = Double.parseDouble(args[4]);
		sRGB[2] = Double.parseDouble(args[5]);
		
		phong = Double.parseDouble(args[9]);
		
	}
	
	//########################## Getters and Setters ###################################
	public double[] getdRGB() {
		return dRGB;
	}

	public void setdRGB(double[] dRGB) {
		this.dRGB = dRGB;
	}

	public double[] getsRGB() {
		return sRGB;
	}

	public void setsRGB(double[] sRGB) {
		this.sRGB = sRGB;
	}

	public double getPhong() {
		return phong;
	}

	public void setPhong(double phong) {
		this.phong = phong;
	}

	
	


}
